home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 2597 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  867 b 

  1. Path: blue.usps.gov!news
  2. From: Craig Johnson <cjohnso7@email.usps.gov>
  3. Newsgroups: comp.lang.c++
  4. Subject: What?? MS forgot about the ANSI standard
  5. Date: Thu, 18 Jan 1996 12:31:59 -0500
  6. Organization: U.S. Postal Service
  7. Message-ID: <30FE840F.4235@email.usps.gov>
  8. NNTP-Posting-Host: wbissc006.usps.gov
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.0b5 (WinNT; I)
  13.  
  14. I am using the code similar to below in VC 4.0:
  15.  
  16.     char block[80];
  17.     int *p = new (block) int;
  18.  
  19. I get the following compiler error:
  20.  
  21. error C2661: 'new' : no overloaded function takes 2 parameters
  22.  
  23. This is perfectly valid C++ syntax.  Am I crazy or did Microsoft 
  24. forget about the ANSI standard.  Any of you using the STL 
  25. probably came across this error also.  If so, how did you 
  26. resolve it?
  27.  
  28. Thanks,
  29. Craig Johnson
  30. cjohnso7@email.usps.gov
  31.